//
//  RDeviceControlView.h
//  iPlan
//
//  Created by 侯伟 on 2021/9/29.
//

#import <UIKit/UIKit.h>
#import <SJVideoPlayer/SJControlLayerDefines.h>

NS_ASSUME_NONNULL_BEGIN

@class CLUPnPDevice;
@protocol RDeviceControlLayerViewControllerDelegate <NSObject>
///
/// 点击空白区域的回调
///
- (void)tappedBlankAreaOnTheControlLayer:(id<SJControlLayer>)controlLayer;

///
/// 选择播放设备
///
- (void)choiseDeviceOnTheControlLayer:(id<SJControlLayer>)controlLayer device:(CLUPnPDevice*)device;


@end

@interface RDeviceControlView : UIView<SJControlLayer>

@property (nonatomic, weak, nullable) id<RDeviceControlLayerViewControllerDelegate> delegate;

@property (nonatomic, copy) NSString* url;

@end

NS_ASSUME_NONNULL_END
